<?php

define("ENVIRONMENT", env('ENVIRONMENT', 'RPO'));
define("WEB_SITE", env('WEB_SITE', '127.0.0.1'));
define("WWW_SITE", env('WWW_SITE', '127.0.0.1'));
define("API_SITE", env('API_SITE', '127.0.0.1'));
define("WEB_WWW", env('WEB_WWW', '127.0.0.1'));
define("APP_VERSION", env('APP_VERSION', '1.0.0'));

const OSS_URL            = 'https://ps-owenweb.oss-cn-shanghai.aliyuncs.com/';
const WEBEN_TITLE        = 'owneweb:';
const WEB_TITLE          = 'OwenWeb';
const ADMIN_TOKEN_LOGIN  = 'owneweb:' . "admin:login_token:login_token_";
const APP_TOKEN_LOGIN    = 'owneweb:' . "app:login_token:login_token_";
const WHITE_IP_REDIS_KEY = "statistic:white:ip:list";
const UID_SESSION_KEY    = 'HOME_UID';
const SITE_HTTP          = ENVIRONMENT == 'PRO' ? 'https' : 'http';
const WEB_URL            = SITE_HTTP . '://' . WWW_SITE;
//wss://paytest.owneweb.com/wss
//wss://127.0.0.1:3579/wss
const WS_URL = 'wss://' . WEB_SITE . '/wss';
//const WS_URL             = ENVIRONMENT == 'PRO' ? 'wss://pdfws.' . WEB_SITE : 'ws://testpdfws.' . WEB_SITE;
const CONVERTER_TCP_IP   = ENVIRONMENT == 'PRO' ? 'tcp://122.130.24.134:8899' : 'tcp://127.124.100.98:8899';   // 转换的TCP地址
const TEST_API_MESSAGE   = '当前正在开发测试中...';
const MANY_TIMES_REQUEST = '请不要频繁操作';
const API_AES_KEY        = 'T3lUf3t3pdHzSx8U';

// 不同环境的多台转换主机
const CONVERTER_ARRAY_TCP = [
    'DEV' => [
        CONVERTER_TCP_IP,
        'tcp://127.124.190.98:8898',
    ],
    'PRO' => [
        CONVERTER_TCP_IP,
        'tcp://122.130.24.135:8899',
    ],
];